<template>
    <div class="child3">
        <h2>曾孙组件</h2>
        <p>{{ car }}</p>
    </div>
</template>

<script setup lang="ts">
import {inject} from 'vue';
let car = inject('TOKEN');
</script>

<style scoped>
.child3{
    width: 150px;
    height: 150px;
    background: #bfa;
}
</style>